Skip to content

unix/gtk.c: Make Prima's child process robust against signals#141

Merged
dk merged 1 commit intodk:masterfrom
HaraldJoerg:child_robustness
Feb 16, 2025
Merged

unix/gtk.c: Make Prima's child process robust against signals#141
dk merged 1 commit intodk:masterfrom
HaraldJoerg:child_robustness

Conversation

@HaraldJoerg
Copy link
Contributor

Signals sent to the application propagate to the whole process group. If a Prima application handles / ignores a signal, the same signal can kill the child, which (correctly) discards any signal handlers set by the application.

The patch puts the child in its own process group so that it does no longer receive signals sent to the parent process.

This came up in a discussion on PDL: PDLPorters/pdl#492

Signals sent to the application propagate to the whole process
group.  If a Prima application handles / ignores a signal, the
same signal can kill the child, which (correctly) discards any
signal handlers set by the application.

The patch puts the child in its own process group so that it
does no longer receive signals sent to the parent process.

This came up in a discussion on PDL: PDLPorters/pdl#492
@dk dk merged commit 9217060 into dk:master Feb 16, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants